package com.study.book.pojo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 评论帖子表
 * @TableName Comment
 */
@TableName(value ="Comment")
@Data
public class Comment implements Serializable {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 论坛帖子ID
     */
    private Integer forumid;

    /**
     * 评论用户ID
     */
    private Integer adminid;
    /**
     * 评论用户
     */
    @TableField(exist=false)
    private String adminName;

    /**
     * 评论
     */
    private String comment;

    /**
     * 评论顺序id
     */
    private Integer sort;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}